package com.example.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description ="教师信息")
public class TeacherDto {

    @Schema(description="教师id")
    private Integer id;

    @Schema(description="教师姓名")
    private String name;

    @Schema(description="教师工号")
    private Long no;

    @Schema(description="性别")
    private Boolean gender;

    @Schema(description="入职时间")
    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
    private Date onboardingTime;

    @Schema(description="密码")
    private String password;

    private static final long serialVersionUID = 1L;

}
